package cn.ssj.service.impl;

import cn.ssj.dao.EnterpriseDao;
import cn.ssj.entity.Enterprise;
import cn.ssj.service.EnterpriseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * Created by Administrator on 2017/9/4 0004.
 */
@Service
public class EnterpriseServiceImpl extends BaseServiceImpl<Enterprise,Integer> implements EnterpriseService{
    @Autowired
    private EnterpriseDao dao;
    @Transactional
    public Enterprise insert(Enterprise entity) {
        return super.insert(entity);
    }
    @Transactional
    public Enterprise update(Enterprise entity) {
        return super.update(entity);
    }
    @Transactional
    public boolean delete(Integer id) {
        return super.delete(id);
    }
}
